import sys

from PyQt5.QtGui import QIcon, QFont
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QToolTip

'''
鼠标悬停 提示文字
'''

if __name__ == '__main__':
    app = QApplication(sys.argv)
    w = QWidget()

    w.setWindowTitle('刘金玉编程')
    w.setWindowIcon(QIcon('./img/msn.ico'))
    QToolTip.setFont(QFont("隶书", 20))
    w.setToolTip('编程创造城市http://bcczcs.com')
    # 按钮
    btn = QPushButton('点我', w)
    btn.setToolTip('你好')
    btn.move(100, 50)

    w.show()
    app.exec_()
